<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%@ taglib
	prefix="sec" uri="http://www.springframework.org/security/tags"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>A-Question-A-Day</title>
</head>
<body>
	<div align="right">
		Logged in as <a href="<c:url value="/" />"><sec:authentication
				property="principal.username" /></a>
	</div>
	<center>
		<h1>A-Question-A-Day</h1>
		<form method="post" action="sendemail.do">
			<table border="0" width="80%">
				<tr>
					<td>To:</td>
					<td><input type="text" name="recipient" size="65" /></td>
				</tr>
				<tr>
					<td>Subject:</td>
					<td><input type="text" name="subject" size="65" /></td>
				</tr>
				<tr>
					<td>Message:</td>
					<td><textarea cols="50" rows="10" name="message"></textarea></td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="submit"
						value="Send E-mail" /></td>
				</tr>
			</table>
		</form>
	</center>
	<div align="right">
		<a href="<c:url value="j_spring_security_logout" />"> Logout</a>
	</div>
</body>
</html>